import java.util.Scanner;
public class GradeCal
{
	public static void main(String[] args) {

		int score,i;
		for(i=0;i<5;i++)
		{
		Scanner sc=new Scanner(System.in);
		  System.out.print(" Input score :  ");
		  score =sc.nextInt();
		  if(score>=80&&score<=100) 
			{System.out.println("grade= A");}
		if(score>=76&&score<=79)
		    { System.out.println("grade= B+");}
		if(score>=70&&score<=75) 
			{System.out.println("grade= B");}
		if(score>=66&&score<=69) 
		   {System.out.println("grade= C+");}
		if(score>=60&&score<=65) 
			{System.out.println("grade= C");}
		if(score>=56&&score<=59) 
			{System.out.println("grade= D+");}
		if(score>=50&&score<=55) 
			{System.out.println("grade= D");}
		if(score>=0&&score<=49)
			{System.out.println("grade= F");}	
		if(score>100)
		{System.out.println("Your Score Over Flow");}	
		if(score<0)
		{System.out.println("Your Score Under Flow");}	
		}
		
			}
}



